<?php
namespace App\Http\Controllers\Api;

use Illuminate\Http\Request;
use App\Models\Books;
use Illuminate\Support\Facades\Input;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Redis;
use App\Jobs\ClickQueue;

class UsersController extends Controller{

    /**
     * 获取用户个人信息
     *
     * @return [json] user object
     */
    public function userInfo(Request $request)
    {
        return jsonSuccessData(['userInfo'=>$request->user()]);
    }

}
